package qldc.pm.tiensu.model.impl;

import com.liferay.portal.kernel.bean.AutoEscapeBeanHandler;
import com.liferay.portal.kernel.util.GetterUtil;
import com.liferay.portal.kernel.util.ProxyUtil;
import com.liferay.portal.kernel.util.StringBundler;
import com.liferay.portal.kernel.util.StringPool;
import com.liferay.portal.model.CacheModel;
import com.liferay.portal.model.impl.BaseModelImpl;
import com.liferay.portal.service.ServiceContext;

import com.liferay.portlet.expando.model.ExpandoBridge;
import com.liferay.portlet.expando.util.ExpandoBridgeFactoryUtil;

import qldc.pm.tiensu.model.KetQuaTrichLuc;
import qldc.pm.tiensu.model.KetQuaTrichLucModel;

import java.io.Serializable;

import java.sql.Types;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

/**
 * The base model implementation for the KetQuaTrichLuc service. Represents a row in the &quot;TS_KetQuaTrichLuc&quot; database table, with each column mapped to a property of this class.
 *
 * <p>
 * This implementation and its corresponding interface {@link qldc.pm.tiensu.model.KetQuaTrichLucModel} exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in {@link KetQuaTrichLucImpl}.
 * </p>
 *
 * @author Brian Wing Shun Chan
 * @see KetQuaTrichLucImpl
 * @see qldc.pm.tiensu.model.KetQuaTrichLuc
 * @see qldc.pm.tiensu.model.KetQuaTrichLucModel
 * @generated
 */
public class KetQuaTrichLucModelImpl extends BaseModelImpl<KetQuaTrichLuc>
    implements KetQuaTrichLucModel {
    /*
     * NOTE FOR DEVELOPERS:
     *
     * Never modify or reference this class directly. All methods that expect a ket qua trich luc model instance should use the {@link qldc.pm.tiensu.model.KetQuaTrichLuc} interface instead.
     */
    public static final String TABLE_NAME = "TS_KetQuaTrichLuc";
    public static final Object[][] TABLE_COLUMNS = {
            { "ketQuaTrichLucId", Types.BIGINT },
            { "yeuCauTrichLucId", Types.BIGINT },
            { "maKetQuaTrichLuc", Types.VARCHAR },
            { "kinhGui", Types.VARCHAR },
            { "tinhTrangAnTich", Types.VARCHAR },
            { "thongTinAnTich", Types.VARCHAR },
            { "toiDanh", Types.VARCHAR },
            { "hinhPhatChinh", Types.VARCHAR },
            { "hinhPhatBoSung", Types.VARCHAR },
            { "trinhTrangThiHanhAn", Types.VARCHAR },
            { "nguoiTraCuuHoSo", Types.VARCHAR },
            { "ngayTraCuu", Types.TIMESTAMP },
            { "ketQua", Types.INTEGER }
        };
    public static final String TABLE_SQL_CREATE = "create table TS_KetQuaTrichLuc (ketQuaTrichLucId LONG not null primary key,yeuCauTrichLucId LONG,maKetQuaTrichLuc VARCHAR(50) null,kinhGui VARCHAR(100) null,tinhTrangAnTich STRING null,thongTinAnTich STRING null,toiDanh STRING null,hinhPhatChinh STRING null,hinhPhatBoSung STRING null,trinhTrangThiHanhAn STRING null,nguoiTraCuuHoSo VARCHAR(100) null,ngayTraCuu DATE null,ketQua INTEGER)";
    public static final String TABLE_SQL_DROP = "drop table TS_KetQuaTrichLuc";
    public static final String ORDER_BY_JPQL = " ORDER BY ketQuaTrichLuc.ketQuaTrichLucId DESC";
    public static final String ORDER_BY_SQL = " ORDER BY TS_KetQuaTrichLuc.ketQuaTrichLucId DESC";
    public static final String DATA_SOURCE = "liferayDataSource";
    public static final String SESSION_FACTORY = "liferaySessionFactory";
    public static final String TX_MANAGER = "liferayTransactionManager";
    public static final boolean ENTITY_CACHE_ENABLED = GetterUtil.getBoolean(com.liferay.util.service.ServiceProps.get(
                "value.object.entity.cache.enabled.qldc.pm.tiensu.model.KetQuaTrichLuc"),
            true);
    public static final boolean FINDER_CACHE_ENABLED = GetterUtil.getBoolean(com.liferay.util.service.ServiceProps.get(
                "value.object.finder.cache.enabled.qldc.pm.tiensu.model.KetQuaTrichLuc"),
            true);
    public static final boolean COLUMN_BITMASK_ENABLED = GetterUtil.getBoolean(com.liferay.util.service.ServiceProps.get(
                "value.object.column.bitmask.enabled.qldc.pm.tiensu.model.KetQuaTrichLuc"),
            true);
    public static long YEUCAUTRICHLUCID_COLUMN_BITMASK = 1L;
    public static long KETQUATRICHLUCID_COLUMN_BITMASK = 2L;
    public static final long LOCK_EXPIRATION_TIME = GetterUtil.getLong(com.liferay.util.service.ServiceProps.get(
                "lock.expiration.time.qldc.pm.tiensu.model.KetQuaTrichLuc"));
    private static ClassLoader _classLoader = KetQuaTrichLuc.class.getClassLoader();
    private static Class<?>[] _escapedModelInterfaces = new Class[] {
            KetQuaTrichLuc.class
        };
    private long _ketQuaTrichLucId;
    private long _yeuCauTrichLucId;
    private long _originalYeuCauTrichLucId;
    private boolean _setOriginalYeuCauTrichLucId;
    private String _maKetQuaTrichLuc;
    private String _kinhGui;
    private String _tinhTrangAnTich;
    private String _thongTinAnTich;
    private String _toiDanh;
    private String _hinhPhatChinh;
    private String _hinhPhatBoSung;
    private String _trinhTrangThiHanhAn;
    private String _nguoiTraCuuHoSo;
    private Date _ngayTraCuu;
    private int _ketQua;
    private long _columnBitmask;
    private KetQuaTrichLuc _escapedModel;

    public KetQuaTrichLucModelImpl() {
    }

    @Override
    public long getPrimaryKey() {
        return _ketQuaTrichLucId;
    }

    @Override
    public void setPrimaryKey(long primaryKey) {
        setKetQuaTrichLucId(primaryKey);
    }

    @Override
    public Serializable getPrimaryKeyObj() {
        return _ketQuaTrichLucId;
    }

    @Override
    public void setPrimaryKeyObj(Serializable primaryKeyObj) {
        setPrimaryKey(((Long) primaryKeyObj).longValue());
    }

    @Override
    public Class<?> getModelClass() {
        return KetQuaTrichLuc.class;
    }

    @Override
    public String getModelClassName() {
        return KetQuaTrichLuc.class.getName();
    }

    @Override
    public Map<String, Object> getModelAttributes() {
        Map<String, Object> attributes = new HashMap<String, Object>();

        attributes.put("ketQuaTrichLucId", getKetQuaTrichLucId());
        attributes.put("yeuCauTrichLucId", getYeuCauTrichLucId());
        attributes.put("maKetQuaTrichLuc", getMaKetQuaTrichLuc());
        attributes.put("kinhGui", getKinhGui());
        attributes.put("tinhTrangAnTich", getTinhTrangAnTich());
        attributes.put("thongTinAnTich", getThongTinAnTich());
        attributes.put("toiDanh", getToiDanh());
        attributes.put("hinhPhatChinh", getHinhPhatChinh());
        attributes.put("hinhPhatBoSung", getHinhPhatBoSung());
        attributes.put("trinhTrangThiHanhAn", getTrinhTrangThiHanhAn());
        attributes.put("nguoiTraCuuHoSo", getNguoiTraCuuHoSo());
        attributes.put("ngayTraCuu", getNgayTraCuu());
        attributes.put("ketQua", getKetQua());

        return attributes;
    }

    @Override
    public void setModelAttributes(Map<String, Object> attributes) {
        Long ketQuaTrichLucId = (Long) attributes.get("ketQuaTrichLucId");

        if (ketQuaTrichLucId != null) {
            setKetQuaTrichLucId(ketQuaTrichLucId);
        }

        Long yeuCauTrichLucId = (Long) attributes.get("yeuCauTrichLucId");

        if (yeuCauTrichLucId != null) {
            setYeuCauTrichLucId(yeuCauTrichLucId);
        }

        String maKetQuaTrichLuc = (String) attributes.get("maKetQuaTrichLuc");

        if (maKetQuaTrichLuc != null) {
            setMaKetQuaTrichLuc(maKetQuaTrichLuc);
        }

        String kinhGui = (String) attributes.get("kinhGui");

        if (kinhGui != null) {
            setKinhGui(kinhGui);
        }

        String tinhTrangAnTich = (String) attributes.get("tinhTrangAnTich");

        if (tinhTrangAnTich != null) {
            setTinhTrangAnTich(tinhTrangAnTich);
        }

        String thongTinAnTich = (String) attributes.get("thongTinAnTich");

        if (thongTinAnTich != null) {
            setThongTinAnTich(thongTinAnTich);
        }

        String toiDanh = (String) attributes.get("toiDanh");

        if (toiDanh != null) {
            setToiDanh(toiDanh);
        }

        String hinhPhatChinh = (String) attributes.get("hinhPhatChinh");

        if (hinhPhatChinh != null) {
            setHinhPhatChinh(hinhPhatChinh);
        }

        String hinhPhatBoSung = (String) attributes.get("hinhPhatBoSung");

        if (hinhPhatBoSung != null) {
            setHinhPhatBoSung(hinhPhatBoSung);
        }

        String trinhTrangThiHanhAn = (String) attributes.get(
                "trinhTrangThiHanhAn");

        if (trinhTrangThiHanhAn != null) {
            setTrinhTrangThiHanhAn(trinhTrangThiHanhAn);
        }

        String nguoiTraCuuHoSo = (String) attributes.get("nguoiTraCuuHoSo");

        if (nguoiTraCuuHoSo != null) {
            setNguoiTraCuuHoSo(nguoiTraCuuHoSo);
        }

        Date ngayTraCuu = (Date) attributes.get("ngayTraCuu");

        if (ngayTraCuu != null) {
            setNgayTraCuu(ngayTraCuu);
        }

        Integer ketQua = (Integer) attributes.get("ketQua");

        if (ketQua != null) {
            setKetQua(ketQua);
        }
    }

    @Override
    public long getKetQuaTrichLucId() {
        return _ketQuaTrichLucId;
    }

    @Override
    public void setKetQuaTrichLucId(long ketQuaTrichLucId) {
        _columnBitmask = -1L;

        _ketQuaTrichLucId = ketQuaTrichLucId;
    }

    @Override
    public long getYeuCauTrichLucId() {
        return _yeuCauTrichLucId;
    }

    @Override
    public void setYeuCauTrichLucId(long yeuCauTrichLucId) {
        _columnBitmask |= YEUCAUTRICHLUCID_COLUMN_BITMASK;

        if (!_setOriginalYeuCauTrichLucId) {
            _setOriginalYeuCauTrichLucId = true;

            _originalYeuCauTrichLucId = _yeuCauTrichLucId;
        }

        _yeuCauTrichLucId = yeuCauTrichLucId;
    }

    public long getOriginalYeuCauTrichLucId() {
        return _originalYeuCauTrichLucId;
    }

    @Override
    public String getMaKetQuaTrichLuc() {
        if (_maKetQuaTrichLuc == null) {
            return StringPool.BLANK;
        } else {
            return _maKetQuaTrichLuc;
        }
    }

    @Override
    public void setMaKetQuaTrichLuc(String maKetQuaTrichLuc) {
        _maKetQuaTrichLuc = maKetQuaTrichLuc;
    }

    @Override
    public String getKinhGui() {
        if (_kinhGui == null) {
            return StringPool.BLANK;
        } else {
            return _kinhGui;
        }
    }

    @Override
    public void setKinhGui(String kinhGui) {
        _kinhGui = kinhGui;
    }

    @Override
    public String getTinhTrangAnTich() {
        if (_tinhTrangAnTich == null) {
            return StringPool.BLANK;
        } else {
            return _tinhTrangAnTich;
        }
    }

    @Override
    public void setTinhTrangAnTich(String tinhTrangAnTich) {
        _tinhTrangAnTich = tinhTrangAnTich;
    }

    @Override
    public String getThongTinAnTich() {
        if (_thongTinAnTich == null) {
            return StringPool.BLANK;
        } else {
            return _thongTinAnTich;
        }
    }

    @Override
    public void setThongTinAnTich(String thongTinAnTich) {
        _thongTinAnTich = thongTinAnTich;
    }

    @Override
    public String getToiDanh() {
        if (_toiDanh == null) {
            return StringPool.BLANK;
        } else {
            return _toiDanh;
        }
    }

    @Override
    public void setToiDanh(String toiDanh) {
        _toiDanh = toiDanh;
    }

    @Override
    public String getHinhPhatChinh() {
        if (_hinhPhatChinh == null) {
            return StringPool.BLANK;
        } else {
            return _hinhPhatChinh;
        }
    }

    @Override
    public void setHinhPhatChinh(String hinhPhatChinh) {
        _hinhPhatChinh = hinhPhatChinh;
    }

    @Override
    public String getHinhPhatBoSung() {
        if (_hinhPhatBoSung == null) {
            return StringPool.BLANK;
        } else {
            return _hinhPhatBoSung;
        }
    }

    @Override
    public void setHinhPhatBoSung(String hinhPhatBoSung) {
        _hinhPhatBoSung = hinhPhatBoSung;
    }

    @Override
    public String getTrinhTrangThiHanhAn() {
        if (_trinhTrangThiHanhAn == null) {
            return StringPool.BLANK;
        } else {
            return _trinhTrangThiHanhAn;
        }
    }

    @Override
    public void setTrinhTrangThiHanhAn(String trinhTrangThiHanhAn) {
        _trinhTrangThiHanhAn = trinhTrangThiHanhAn;
    }

    @Override
    public String getNguoiTraCuuHoSo() {
        if (_nguoiTraCuuHoSo == null) {
            return StringPool.BLANK;
        } else {
            return _nguoiTraCuuHoSo;
        }
    }

    @Override
    public void setNguoiTraCuuHoSo(String nguoiTraCuuHoSo) {
        _nguoiTraCuuHoSo = nguoiTraCuuHoSo;
    }

    @Override
    public Date getNgayTraCuu() {
        return _ngayTraCuu;
    }

    @Override
    public void setNgayTraCuu(Date ngayTraCuu) {
        _ngayTraCuu = ngayTraCuu;
    }

    @Override
    public int getKetQua() {
        return _ketQua;
    }

    @Override
    public void setKetQua(int ketQua) {
        _ketQua = ketQua;
    }

    public long getColumnBitmask() {
        return _columnBitmask;
    }

    @Override
    public ExpandoBridge getExpandoBridge() {
        return ExpandoBridgeFactoryUtil.getExpandoBridge(0,
            KetQuaTrichLuc.class.getName(), getPrimaryKey());
    }

    @Override
    public void setExpandoBridgeAttributes(ServiceContext serviceContext) {
        ExpandoBridge expandoBridge = getExpandoBridge();

        expandoBridge.setAttributes(serviceContext);
    }

    @Override
    public KetQuaTrichLuc toEscapedModel() {
        if (_escapedModel == null) {
            _escapedModel = (KetQuaTrichLuc) ProxyUtil.newProxyInstance(_classLoader,
                    _escapedModelInterfaces, new AutoEscapeBeanHandler(this));
        }

        return _escapedModel;
    }

    @Override
    public Object clone() {
        KetQuaTrichLucImpl ketQuaTrichLucImpl = new KetQuaTrichLucImpl();

        ketQuaTrichLucImpl.setKetQuaTrichLucId(getKetQuaTrichLucId());
        ketQuaTrichLucImpl.setYeuCauTrichLucId(getYeuCauTrichLucId());
        ketQuaTrichLucImpl.setMaKetQuaTrichLuc(getMaKetQuaTrichLuc());
        ketQuaTrichLucImpl.setKinhGui(getKinhGui());
        ketQuaTrichLucImpl.setTinhTrangAnTich(getTinhTrangAnTich());
        ketQuaTrichLucImpl.setThongTinAnTich(getThongTinAnTich());
        ketQuaTrichLucImpl.setToiDanh(getToiDanh());
        ketQuaTrichLucImpl.setHinhPhatChinh(getHinhPhatChinh());
        ketQuaTrichLucImpl.setHinhPhatBoSung(getHinhPhatBoSung());
        ketQuaTrichLucImpl.setTrinhTrangThiHanhAn(getTrinhTrangThiHanhAn());
        ketQuaTrichLucImpl.setNguoiTraCuuHoSo(getNguoiTraCuuHoSo());
        ketQuaTrichLucImpl.setNgayTraCuu(getNgayTraCuu());
        ketQuaTrichLucImpl.setKetQua(getKetQua());

        ketQuaTrichLucImpl.resetOriginalValues();

        return ketQuaTrichLucImpl;
    }

    @Override
    public int compareTo(KetQuaTrichLuc ketQuaTrichLuc) {
        int value = 0;

        if (getKetQuaTrichLucId() < ketQuaTrichLuc.getKetQuaTrichLucId()) {
            value = -1;
        } else if (getKetQuaTrichLucId() > ketQuaTrichLuc.getKetQuaTrichLucId()) {
            value = 1;
        } else {
            value = 0;
        }

        value = value * -1;

        if (value != 0) {
            return value;
        }

        return 0;
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }

        if (!(obj instanceof KetQuaTrichLuc)) {
            return false;
        }

        KetQuaTrichLuc ketQuaTrichLuc = (KetQuaTrichLuc) obj;

        long primaryKey = ketQuaTrichLuc.getPrimaryKey();

        if (getPrimaryKey() == primaryKey) {
            return true;
        } else {
            return false;
        }
    }

    @Override
    public int hashCode() {
        return (int) getPrimaryKey();
    }

    @Override
    public void resetOriginalValues() {
        KetQuaTrichLucModelImpl ketQuaTrichLucModelImpl = this;

        ketQuaTrichLucModelImpl._originalYeuCauTrichLucId = ketQuaTrichLucModelImpl._yeuCauTrichLucId;

        ketQuaTrichLucModelImpl._setOriginalYeuCauTrichLucId = false;

        ketQuaTrichLucModelImpl._columnBitmask = 0;
    }

    @Override
    public CacheModel<KetQuaTrichLuc> toCacheModel() {
        KetQuaTrichLucCacheModel ketQuaTrichLucCacheModel = new KetQuaTrichLucCacheModel();

        ketQuaTrichLucCacheModel.ketQuaTrichLucId = getKetQuaTrichLucId();

        ketQuaTrichLucCacheModel.yeuCauTrichLucId = getYeuCauTrichLucId();

        ketQuaTrichLucCacheModel.maKetQuaTrichLuc = getMaKetQuaTrichLuc();

        String maKetQuaTrichLuc = ketQuaTrichLucCacheModel.maKetQuaTrichLuc;

        if ((maKetQuaTrichLuc != null) && (maKetQuaTrichLuc.length() == 0)) {
            ketQuaTrichLucCacheModel.maKetQuaTrichLuc = null;
        }

        ketQuaTrichLucCacheModel.kinhGui = getKinhGui();

        String kinhGui = ketQuaTrichLucCacheModel.kinhGui;

        if ((kinhGui != null) && (kinhGui.length() == 0)) {
            ketQuaTrichLucCacheModel.kinhGui = null;
        }

        ketQuaTrichLucCacheModel.tinhTrangAnTich = getTinhTrangAnTich();

        String tinhTrangAnTich = ketQuaTrichLucCacheModel.tinhTrangAnTich;

        if ((tinhTrangAnTich != null) && (tinhTrangAnTich.length() == 0)) {
            ketQuaTrichLucCacheModel.tinhTrangAnTich = null;
        }

        ketQuaTrichLucCacheModel.thongTinAnTich = getThongTinAnTich();

        String thongTinAnTich = ketQuaTrichLucCacheModel.thongTinAnTich;

        if ((thongTinAnTich != null) && (thongTinAnTich.length() == 0)) {
            ketQuaTrichLucCacheModel.thongTinAnTich = null;
        }

        ketQuaTrichLucCacheModel.toiDanh = getToiDanh();

        String toiDanh = ketQuaTrichLucCacheModel.toiDanh;

        if ((toiDanh != null) && (toiDanh.length() == 0)) {
            ketQuaTrichLucCacheModel.toiDanh = null;
        }

        ketQuaTrichLucCacheModel.hinhPhatChinh = getHinhPhatChinh();

        String hinhPhatChinh = ketQuaTrichLucCacheModel.hinhPhatChinh;

        if ((hinhPhatChinh != null) && (hinhPhatChinh.length() == 0)) {
            ketQuaTrichLucCacheModel.hinhPhatChinh = null;
        }

        ketQuaTrichLucCacheModel.hinhPhatBoSung = getHinhPhatBoSung();

        String hinhPhatBoSung = ketQuaTrichLucCacheModel.hinhPhatBoSung;

        if ((hinhPhatBoSung != null) && (hinhPhatBoSung.length() == 0)) {
            ketQuaTrichLucCacheModel.hinhPhatBoSung = null;
        }

        ketQuaTrichLucCacheModel.trinhTrangThiHanhAn = getTrinhTrangThiHanhAn();

        String trinhTrangThiHanhAn = ketQuaTrichLucCacheModel.trinhTrangThiHanhAn;

        if ((trinhTrangThiHanhAn != null) &&
                (trinhTrangThiHanhAn.length() == 0)) {
            ketQuaTrichLucCacheModel.trinhTrangThiHanhAn = null;
        }

        ketQuaTrichLucCacheModel.nguoiTraCuuHoSo = getNguoiTraCuuHoSo();

        String nguoiTraCuuHoSo = ketQuaTrichLucCacheModel.nguoiTraCuuHoSo;

        if ((nguoiTraCuuHoSo != null) && (nguoiTraCuuHoSo.length() == 0)) {
            ketQuaTrichLucCacheModel.nguoiTraCuuHoSo = null;
        }

        Date ngayTraCuu = getNgayTraCuu();

        if (ngayTraCuu != null) {
            ketQuaTrichLucCacheModel.ngayTraCuu = ngayTraCuu.getTime();
        } else {
            ketQuaTrichLucCacheModel.ngayTraCuu = Long.MIN_VALUE;
        }

        ketQuaTrichLucCacheModel.ketQua = getKetQua();

        return ketQuaTrichLucCacheModel;
    }

    @Override
    public String toString() {
        StringBundler sb = new StringBundler(27);

        sb.append("{ketQuaTrichLucId=");
        sb.append(getKetQuaTrichLucId());
        sb.append(", yeuCauTrichLucId=");
        sb.append(getYeuCauTrichLucId());
        sb.append(", maKetQuaTrichLuc=");
        sb.append(getMaKetQuaTrichLuc());
        sb.append(", kinhGui=");
        sb.append(getKinhGui());
        sb.append(", tinhTrangAnTich=");
        sb.append(getTinhTrangAnTich());
        sb.append(", thongTinAnTich=");
        sb.append(getThongTinAnTich());
        sb.append(", toiDanh=");
        sb.append(getToiDanh());
        sb.append(", hinhPhatChinh=");
        sb.append(getHinhPhatChinh());
        sb.append(", hinhPhatBoSung=");
        sb.append(getHinhPhatBoSung());
        sb.append(", trinhTrangThiHanhAn=");
        sb.append(getTrinhTrangThiHanhAn());
        sb.append(", nguoiTraCuuHoSo=");
        sb.append(getNguoiTraCuuHoSo());
        sb.append(", ngayTraCuu=");
        sb.append(getNgayTraCuu());
        sb.append(", ketQua=");
        sb.append(getKetQua());
        sb.append("}");

        return sb.toString();
    }

    @Override
    public String toXmlString() {
        StringBundler sb = new StringBundler(43);

        sb.append("<model><model-name>");
        sb.append("qldc.pm.tiensu.model.KetQuaTrichLuc");
        sb.append("</model-name>");

        sb.append(
            "<column><column-name>ketQuaTrichLucId</column-name><column-value><![CDATA[");
        sb.append(getKetQuaTrichLucId());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>yeuCauTrichLucId</column-name><column-value><![CDATA[");
        sb.append(getYeuCauTrichLucId());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>maKetQuaTrichLuc</column-name><column-value><![CDATA[");
        sb.append(getMaKetQuaTrichLuc());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>kinhGui</column-name><column-value><![CDATA[");
        sb.append(getKinhGui());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>tinhTrangAnTich</column-name><column-value><![CDATA[");
        sb.append(getTinhTrangAnTich());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>thongTinAnTich</column-name><column-value><![CDATA[");
        sb.append(getThongTinAnTich());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>toiDanh</column-name><column-value><![CDATA[");
        sb.append(getToiDanh());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>hinhPhatChinh</column-name><column-value><![CDATA[");
        sb.append(getHinhPhatChinh());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>hinhPhatBoSung</column-name><column-value><![CDATA[");
        sb.append(getHinhPhatBoSung());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>trinhTrangThiHanhAn</column-name><column-value><![CDATA[");
        sb.append(getTrinhTrangThiHanhAn());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>nguoiTraCuuHoSo</column-name><column-value><![CDATA[");
        sb.append(getNguoiTraCuuHoSo());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>ngayTraCuu</column-name><column-value><![CDATA[");
        sb.append(getNgayTraCuu());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>ketQua</column-name><column-value><![CDATA[");
        sb.append(getKetQua());
        sb.append("]]></column-value></column>");

        sb.append("</model>");

        return sb.toString();
    }
}
